package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class User implements Serializable {
    private Integer userId;

    private String userTelphone;

    private String userPassword;

    private String userImage;

    private String userNickname;

    private String userName;

    private String userSex;

    private String userAutograph;

    private String userProvince;

    private String userCity;

    private Integer guruId;

    private Integer userStatus;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date userCreateDate;

    private Guru guru;
}